<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

<h:head></h:head> 
<body> 
<h:form>
	<h:messages />
	<h:panelGrid columns="2">
		<f:facet name="header"></f:facet>
		<h:outputLabel value="De:" />
		<h:inputText id="de" value="#{emailMB.infoBean.emissor}" required="true" />
		
		<h:outputLabel value="Para:" />
		<h:inputText id="para" value="#{emailMB.infoBean.destinatario}" required="true" />
		
		<h:outputLabel value="CC:" />
		<h:inputText id="cc" value="#{emailMB.infoBean.destinatarioCC}" required="true"/>
		<!-- 
		<h:outputLabel value="BCC:" />
		<h:inputText id="bcc" value="#{emailMB.infoBean.destinatarioBCC}"/>
		 -->
		<h:outputLabel value="Assunto:" />
		<h:inputText id="assunto" value="#{emailMB.infoBean.assunto}" required="true" />
		
		<h:outputLabel value="Mensagem:" />
		<h:inputTextarea id="mensagem" rows="10" cols="30" value="#{emailMB.infoBean.mensagem}" required="true" />
			
		<h:outputLabel value="Anexo:" />
		<h:inputText id="anexo" value="#{emailMB.infoBean.anexos}"/>
		
		<f:facet name="footer">
			<h:commandButton id="enviarSimples" value="Enviar simples" action="#{emailMB.enviarSimples}" />
			<h:commandButton id="enviarAutenticado" value="Enviar autenticado" action="#{emailMB.enviarAutenticado}" />
		</f:facet>		
	</h:panelGrid>
</h:form>
</body> 
</html>
